gdkwindow-wayland: Make function order match listener order
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 6 Feb 2014 19:28:51 +0000 (14:28 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 6 Feb 2014 19:29:18 +0000 (14:29 -0500)
gdk/wayland/gdkwindow-wayland.c

index 41a69988a3a5ca7c80bdc565166ef23f9674647d..fa65b2c0aa7160c09a91b1c143f004b78064514f 100644 (file)
@@ -962,22 +962,6 @@ xdg_surface_configure (void               *data,
   gdk_wayland_window_configure (window, width, height, edges);
 }
 
-static void
-xdg_surface_focused_set (void *data,
-                         struct xdg_surface *xdg_surface)
-{
-  GdkWindow *window = GDK_WINDOW (data);
-  gdk_synthesize_window_state (window, 0, GDK_WINDOW_STATE_FOCUSED);
-}
-
-static void
-xdg_surface_focused_unset (void *data,
-                           struct xdg_surface *xdg_surface)
-{
-  GdkWindow *window = GDK_WINDOW (data);
-  gdk_synthesize_window_state (window, GDK_WINDOW_STATE_FOCUSED, 0);
-}
-
 static void
 xdg_surface_request_set_fullscreen (void *data,
                                     struct xdg_surface *xdg_surface)
@@ -1010,6 +994,22 @@ xdg_surface_request_unset_maximized (void *data,
   gdk_window_unmaximize (window);
 }
 
+static void
+xdg_surface_focused_set (void *data,
+                         struct xdg_surface *xdg_surface)
+{
+  GdkWindow *window = GDK_WINDOW (data);
+  gdk_synthesize_window_state (window, 0, GDK_WINDOW_STATE_FOCUSED);
+}
+
+static void
+xdg_surface_focused_unset (void *data,
+                           struct xdg_surface *xdg_surface)
+{
+  GdkWindow *window = GDK_WINDOW (data);
+  gdk_synthesize_window_state (window, GDK_WINDOW_STATE_FOCUSED, 0);
+}
+
 static const struct xdg_surface_listener xdg_surface_listener = {
   xdg_surface_ping,
   xdg_surface_configure,